# Contributor: qaqland <qaq@qaq.land>
# Maintainer: qaqland <qaq@qaq.land>
pkgname=bats-assert
pkgver=2.1.0
pkgrel=0
pkgdesc="Common assertions for Bats"
url="https://github.com/bats-core/bats-assert"
arch="noarch"
license="CC0-1.0"
depends="bash bats-core bats-support"
source="$pkgname-$pkgver.tar.gz::https://github.com/bats-core/bats-assert/archive/refs/tags/v$pkgver.tar.gz"

check() {
	BATS_LIB_PATH=/usr/lib/bats bats test
}

package() {
	install -Dm644 load.bash "$pkgdir"/usr/lib/bats/bats-assert/load.bash
	install -Dm644 src/* -t "$pkgdir"/usr/lib/bats/bats-assert/src
}

sha512sums="
797689b91df5018b717c09578e1c0f6fea11f344c2e5985ec5eaca89bab39aafa7d88b31043a34576bcdf0ab5cf160c9624ee3167bd0854d7b16aa947b3928e4  bats-assert-2.1.0.tar.gz
"
